package com.itheima.table02;

import com.itheima.MyUntils.MyUntil;
import com.itheima.bean.Classes;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

public class Test02 {
    @Test
    public void selectManyAll(){
        SqlSession sqlsession = MyUntil.getSession();
        OneToMany oneToMany = sqlsession.getMapper(OneToMany.class);
        List<Classes> classes = oneToMany.selectManyAll();
        for (Classes classs:classes) {
            System.out.println(classs);
        }

    }
}
